﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
    public abstract class AbstractTrack
    {
        private string _name;
        private int _length;
       
        public AbstractTrack()
        { }

        public AbstractTrack(string name, int length)
        {
            _name = name;
            _length = length;
        }
       
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
       
        public int Length
        {
            get { return _length; }
            set { _length = value; }
        }
        public override string ToString()
        {
            return "Название: " + _name + ", длина: " +_length;
        }

    }
}
